﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="zyPage.aspx.cs" Inherits="zyPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            margin: 0 auto;
            text-align: center;
            font-size: 12px;
        }
        table
        {
            border-collapse: collapse;
        }
        ul
        {
            margin: 0px;
            list-style: none;
        }
        #divContainer
        {
            margin: 0 auto;
            text-align: left;
            width: 770px;
        }
        #divTitle1
        {
            height: 25px;
            line-height: 25px;
            vertical-align: middle;
            background: url('images/bg_Title.jpg') repeat-x bottom;
        }
        .divTitle
        {
            height: 30px;
            line-height: 30px;
            vertical-align: middle;
        }
        .divTitle span
        {
            font-weight: bold;
        }
        #tblEdit
        {
            font-size: 12px;
            line-height: 30px;
        }
        /*GridView的样式*/#gvZY, #gvZY td, #gvZY th
        {
            line-height: 19px;
            border: solid 1px black;
        }
        #gvZY td table td
        {
            border: none;
        }
    </style>

    <script src="Script/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        $(function() {
            $("#divKMCont").hide();
        });
        function fnShowKM() {
            $("#divKMCont").fadeIn('slow');
        }
        function fnCloseKM() {
            $("#divKMCont").fadeOut('slow');
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="divContainer">
        <div class="divTitle">
            <span>已有专业信息一览&gt;&gt;</span></div>
        <div id="divBrowse">
            <asp:GridView ID="gvZY" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                Font-Size="12px" PageSize="8" Width="100%" DataKeyNames="zyNum" OnRowDeleting="gvZY_RowDeleting"
                OnSelectedIndexChanging="gvZY_SelectedIndexChanging" OnPageIndexChanging="gvZY_PageIndexChanging">
                <RowStyle HorizontalAlign="Left" />
                <Columns>
                    <asp:BoundField DataField="yxName" HeaderText="院系名称">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="150px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zyNum" HeaderText="专业编号">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zyName" HeaderText="专业名称">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" Width="150px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zxkm" HeaderText="主修科目">
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                    <asp:BoundField DataField="zyZF" HeaderText="专业作废">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle Width="55px" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" ShowDeleteButton="True">
                        <HeaderStyle HorizontalAlign="Left" />
                        <ItemStyle Width="55px" />
                    </asp:CommandField>
                </Columns>
                <FooterStyle HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#CCFFFF" />
            </asp:GridView>
        </div>
        <div class="divTitle">
            <span>维护已有专业信息或添加新的专业信息&gt;&gt;</span>
        </div>
        <div id="divEdit" style="height: 225px;">
            <div style="float: left; clear: left; width: 50%;">
                <table id="tblEdit">
                    <tr>
                        <td>
                            选择院系：
                        </td>
                        <td>
                            <asp:DropDownList ID="dropYX" Width="250px" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top;">
                            专业名称：
                        </td>
                        <td>
                            <asp:TextBox ID="txtZYName" Width="240px" Height="60px" TextMode="MultiLine" runat="server"
                                Font-Size="12px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top;">
                            主修科目：
                        </td>
                        <td>
                            <asp:DropDownList ID="dropKM" Width="250px" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropKM_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            专业作废：
                        </td>
                        <td>
                            <asp:CheckBox ID="chkZF" runat="server" />（添加新专业时勿选此项）
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnRefur" runat="server" Text="添加" OnClick="btnRefur_Click" />
                        </td>
                        <td>
                            <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            （注：不能同时添加多个专业）
                        </td>
                    </tr>
                </table>
            </div>
            <div id="divSeleKM" style="float: right; clear: right; width: 50%; height: 100%">
                <ul>
                    <li style="line-height: 25px;">已选科目>></li>
                    <li>
                        <asp:ListBox ID="lstSeleKM" Width="100%" Height="170px" runat="server"></asp:ListBox>
                    </li>
                    <li>
                        <asp:Button ID="btnRemove" runat="server" Text="删除所选" OnClick="btnRemove_Click" /></li>
                </ul>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
